#!/bin/python3
# -*- coding:utf-8 -*-
"""
    微服务API模板
    Add By :陈狍子 e4ting@qq.com
"""
from flask_restful import Api,Resource

from app.flaskapp import webapp
from e4ting       import log
api = Api(webapp)


from v3.auth.api import WebAuth
api.add_resource(WebAuth,
    "/api/v3/auth/api",
    "/api/v3/auth/api/<string:id>",
    )
log.info(""" /api/v3/auth/api  /api/v3/auth/api/<string:id>  WebAuth""")

from v3.auth.site import WebSite
api.add_resource(WebSite,
    "/api/v3/auth/site",
    "/api/v3/auth/site/<string:id>",
    )
log.info(""" /api/v3/auth/site  /api/v3/auth/site/<string:id>  WebSite""")

from v3.auth.check import WebAuthCheck
api.add_resource(WebAuthCheck,
    "/api/v3/auth/check",
    "/api/v3/auth/check/<string:id>",
    )
log.info(""" /api/v3/auth/check  /api/v3/auth/check/<string:id>  WebAuthCheck""")

